extends "../heianjie-3/heianjie-3.gd"


var baseId = ""
var upText1 = "浅水重炮伤害提高100%"
var upText2 = "弹幕伤害提高30%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("本回合每次开炮后，提高20%炮击、冷却，上限100%", "定向炮击")

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 2
	if upgraded == 2:
		p3 = 1.3

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "fire":
		var buff = hasBuff("b_heianjie4")
		if buff == null:
			addBuff(b_heianjie4.new())
		elif buff.att.atkL < 1:
			buff.att.atkL += 0.2
			buff.att.cd += 0.2

class b_heianjie4:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_haj_dxpj"	
		att.atkL = 0.2
		att.cd = 0.2
		buffName = "定向炮击"
		dispel = 2